﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using senController.classes;
using System.Threading;

namespace senController
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private Controller _controller;

        public MainWindow()
        {
            InitializeComponent();
            _controller = new Controller(this);
        }

        private void btnStartServer_Click(object sender, RoutedEventArgs e)
        {
            _controller.StartServer();
        }

        private void btnRun_Click(object sender, RoutedEventArgs e)
        {
            _controller.StartStart();
        }

        private void btnLoadXML_Click(object sender, RoutedEventArgs e)
        {
            _controller.loadXML();
        }

        private void btnSwitch_Click(object sender, RoutedEventArgs e)
        {
            _controller.btnSwitch();
        }
    }
}
